package com.cundong.recyclerview;

import ohos.agp.components.Component;

/**
 * Created by cundong on 2015/10/9.
 * EndlessRecyclerOnScrollListener class
 */
public class EndlessRecyclerOnScrollListener implements Component.ScrolledListener, OnListLoadNextPageListener {
    @Override
    public void onContentScrolled(Component component, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {
        onLoadNextPage(component);
        // Different layout logics are not used as GridLayout, staggered Grid layout support is not avaliable in HMOS.
        // In future is these supports are added, base on the layout scroll behavior this has to be handled here
    }

    @Override
    public void onLoadNextPage(Component component) {
    }
}
